add_library(hello_qt SHARED iq_impl.cpp)
target_link_qt5(hello_qt)
set_target_properties(hello_qt 
    PROPERTIES 
        LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/
        RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/
        ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/)